package com.mo.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserRoleDao {

    @Select("select rid from user_role where ucode=#{ucode}")
    List<Integer> selectRoleIdsByUserId(Integer ucode);




     @Delete("delete from user_role where ucode=#{ucode}")
     int deleteByUserId(Integer ucode);
}
